package com.tm.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author huangp
 * @create 2021-09-12 21:34
 */
@ApiModel(value = "天马-OA 岗位 实体类",description = "天马-OA 岗位 实体类")
@TableName("t_serial")
public class Serial {

    @ApiModelProperty(value = "主键",required = true,dataType = "number")
    @TableId(type = IdType.AUTO)
    @ExcelProperty(value = {"岗位信息","ID"},order = 1)
    private Integer id;

    @ApiModelProperty(value = "岗位名称",required = true,dataType = "String")
    @ExcelProperty(value = {"岗位信息","岗位名称"},order = 2)
    private String name;

    @ApiModelProperty(value = "上级岗位ID",required = true,dataType = "number")
    @ExcelProperty(value = {"岗位信息","上级岗位ID"},order = 3)
    private Integer pid;

    @ApiModelProperty(value = "编号",required = true,dataType = "String")
    @ExcelProperty(value = {"岗位信息","编号"},order = 4)
    private String serialNumber;

    @ApiModelProperty(value = "职责",required = true,dataType = "String")
    @ExcelProperty(value = {"岗位信息","职责"},order = 5)
    private String responsibility;

    @ApiModelProperty(value = "描述",required = true,dataType = "String")
    @ExcelProperty(value = {"岗位信息","描述"},order = 6)
    private String remark;

    @ApiModelProperty(value = "排序号",required = true,dataType = "number")
    @ExcelProperty(value = {"岗位信息","排序号"},order = 7)
    private Integer sortNumber;

    @ApiModelProperty(value = "创建时间",required = true,dataType = "date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ExcelProperty(value = {"用户信息","入职时间"},order = 8)
    @com.alibaba.excel.annotation.format.DateTimeFormat("yyyy-MM-dd HH:mm:ss" )
    private Date createDate;

    @ApiModelProperty(value = "修改时间",required = true,dataType = "date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ExcelProperty(value = {"用户信息","入职时间"},order = 9)
    @com.alibaba.excel.annotation.format.DateTimeFormat("yyyy-MM-dd HH:mm:ss" )
    private Date updateDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getResponsibility() {
        return responsibility;
    }

    public void setResponsibility(String responsibility) {
        this.responsibility = responsibility;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}
